package com.cssy.xxkj.logic.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.byd.acegiext.domain.User;
import com.cssy.xxkj.logic.dao.LogicWarehouseMaterialoutItemDAO;
import com.cssy.xxkj.logic.entity.LogicWarehouseMaterialoutDO;
import com.cssy.xxkj.logic.entity.LogicWarehouseMaterialoutItemDO;
import com.cssy.xxkj.logic.service.IMaterialOutItemService;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
import com.plat.util.IDCodeTypeUtil;
@Service("materialOutItemServiceImpl")
public class MaterialOutItemServiceImpl implements IMaterialOutItemService {

	@Resource(name="logicWarehouseMaterialoutItemDAO")
	private LogicWarehouseMaterialoutItemDAO logicWarehouseMaterialoutItemDAO;
	
	@Override
	public SearchResult findListByExample(SearchConditions scs)
			throws SyBaseException {
		
		return null;
	}

	@Override
	public Integer delete(String id, User user) throws SyBaseException {
		return null;
	}

	@Override
	public Integer update(LogicWarehouseMaterialoutItemDO t, User user)
			throws SyBaseException {
		return null;
	}

	@Override
	public LogicWarehouseMaterialoutItemDO save(
			LogicWarehouseMaterialoutItemDO t, User user)
			throws SyBaseException {
		String id=IDCodeTypeUtil.getId();
		t.setId(id);
		logicWarehouseMaterialoutItemDAO.insertLogicWarehouseMaterialoutItemDO(t);
		return t;
	}

	@Override
	public LogicWarehouseMaterialoutItemDO findListById(String id)
			throws SyBaseException {
		
		return null;
	}

	@Override
	public Integer deleteBizRemoved(String id) throws SyBaseException {
		return null;
	}

	@Override
	public List<LogicWarehouseMaterialoutItemDO> findByPid(String pid)
			throws SyBaseException {
		return logicWarehouseMaterialoutItemDAO.findByPid(pid);
	}

	@Override
	public void deleteByPid(String pid) throws SyBaseException {
		logicWarehouseMaterialoutItemDAO.deleteByPid(pid);
		
	}

	@Override
	public List<LogicWarehouseMaterialoutItemDO> finListByCondition(
			SearchConditions scs) throws DataAccessException {
		return logicWarehouseMaterialoutItemDAO.finListByCondition(scs);
	}


}
